/**
 * 组件面板Popover类型
 */
export const componentPanelPopoverTypeConst = {
  component: 'component',
  scheme: 'scheme',
};

/**
 * css样式属性值
 */
export const cssStylePropValConst = {
  auto: 'auto',
  oneHundredPercent: '100%',
};

/**
 * 字体样式
 */
export const fontStyleConst = {
  normal: 'normal',
  italic: 'italic',
  oblique: 'oblique',
  inherit: 'inherit',
};

/*
 * 鼠标悬浮图形
 */
export const cursorListConst = [
  {
    value: 'auto',
    label: '自动',
  },
  {
    value: 'default',
    label: '默认',
  },
  {
    value: 'crosshair',
    label: '十字线',
  },
  {
    value: 'url',
    label: 'url',
  },
  {
    value: 'pointer',
    label: '手形',
  },
  {
    value: 'move',
    label: '移动',
  },
  {
    value: 'text',
    label: '文本',
  },
  {
    value: 'wait',
    label: '等待',
  },
  {
    value: 'help',
    label: '帮助',
  },
  {
    value: 'text',
    label: '文本',
  },
  {
    value: 'e-resize',
    label: '向东',
  },
  {
    value: 'ne-resize',
    label: '向北/东',
  },
  {
    value: 'nw-resize',
    label: '向北/西',
  },
  {
    value: 'n-resize',
    label: '向北',
  },
  {
    value: 'se-resize',
    label: '向南/东',
  },
  {
    value: 'sw-resize',
    label: '向南/西',
  },
  {
    value: 's-resize',
    label: '向南',
  },
  {
    value: 'w-resize',
    label: '向西',
  },
];

/**
 * 默认数值单位
 */
export const defaultNumberUnitListConst = [
  {
    value: 'px',
    label: 'px',
  },
  {
    value: '%',
    label: '%',
  },
];

/**
 * 文本装饰
 */
export const textDecorationConst = {
  none: 'none',
  underline: 'underline',
  overline: 'overline',
  lineThrough: 'lineThrough',
  blink: 'blink',
  inherit: 'inherit',
};

/**
 * 翻转
 */
export const transformScaleConst = {
  scaleNone: {
    val: 0,
    cssVal: '',
  },
  scaleLeft: {
    val: 1,
    cssVal: 'scaleX(-1)',
  },
  scaleRight: {
    val: 2,
    cssVal: 'scaleX(1)',
  },
  scaleUp: {
    val: 3,
    cssVal: 'scaleY(-1)',
  },
  scaleDown: {
    val: 4,
    cssVal: 'scaleY(1)',
  },
};

/**
 * 媒体加载时类型
 */
export const mediaPreloadConst = {
  none: 'none',
  auto: 'auto',
  metadata: 'metadata',
};

/**
 * 边框样式列表
 */
export const borderStyleListConst = [
  {
    value: 'none',
    label: '无',
  },
  {
    value: 'solid',
    label: '实线',
  },
  {
    value: 'dotted',
    label: '点状',
  },
  {
    value: 'dashed',
    label: '虚线',
  },
  {
    value: 'double',
    label: '双线',
  },
  {
    value: 'groove',
    label: '3D凹槽',
  },
  {
    value: 'ridge',
    label: '3D垄状',
  },
  {
    value: 'inset',
    label: '3D inset',
  },
  {
    value: 'outset',
    label: '3D outset ',
  },
];

/**
 * 对齐方式
 */
export const alignListConst = [
  {
    value: 'center',
    label: '居中',
  },
  {
    value: 'left',
    label: '左边',
  },
  {
    value: 'right',
    label: '右边',
  },
];

/**
 * 对齐方式类型
 */
export const alignTypeListConst = [
  {
    value: 'option',
    label: '选项',
  },
  {
    value: 'value',
    label: '值',
  },
];

export const alignTypeConst = {
  option: 'option',
  value: 'value',
};

/**
 * echart图例类型列表
 */
export const echartLegendListConst = [
  {
    value: 'plain',
    label: '普通图例',
  },
  {
    value: 'scroll',
    label: '滚动图例',
  },
];

/**
 * echart图例方向列表
 */
export const echartOrientListConst = [
  {
    value: 'horizontal',
    label: '水平',
  },
  {
    value: 'vertical',
    label: '垂直',
  },
];

/**
 * echart 提示触发方式
 */
export const echartTooltipTriggerListConst = [
  {
    value: 'item',
    label: '条目',
  },
  {
    value: 'axis',
    label: '轴',
  },
];

/**
 * echart 提示触发时机
 */
export const echartTooltipTriggerOnListConst = [
  {
    value: 'mousemove',
    label: '移入',
  },
  {
    value: 'click',
    label: '点击',
  },
];

/**
 * echart距离值
 */
export const echartsDistanceListConst = {
  top: [
    {
      value: 'top',
      label: '上',
    },
    {
      value: 'middle',
      label: '中',
    },
    {
      value: 'bottom',
      label: '下',
    },
  ],
  bottom: [
    {
      value: 'bottom',
      label: '下',
    },
    {
      value: 'middle',
      label: '中',
    },
    {
      value: 'top',
      label: '上',
    },
  ],
  left: [
    {
      value: 'left',
      label: '左',
    },
    {
      value: 'center',
      label: '中',
    },

    {
      value: 'right',
      label: '右',
    },
  ],
  right: [
    {
      value: 'right',
      label: '右',
    },
    {
      value: 'center',
      label: '中',
    },
    {
      value: 'left',
      label: '左',
    },
  ],
};

/**
 * echart距离类型
 */
export const echartsDistanceTypeListConst = [
  {
    value: 'option',
    label: '选项',
  },
  {
    value: 'value',
    label: '值',
  },
];

export const echartsDistanceTypeConst = {
  option: 'option',
  value: 'value',
};

/**
 * 饼图角色类型
 */
export const echartsPieRoseTypeListConst = [
  {
    value: 'radius',
    label: '南丁格尔图',
  },
  {
    value: 'area',
    label: '默认',
  },
];

export const echartsPieRoseTypeConst = {
  radius: 'radius',
  area: 'area',
};

/**
 * echart颜色列表
 */
export const echartColorListConst = [
  '#5470c6',
  '#91cc75',
  '#fac858',
  '#ee6666',
  '#6dc0e0',
  '#3ba272',
  '#fc8452',
  '#9a60b4',
  '#ea7ccc',
  '#5a91e4',
  '#b7e89f',
  '#f9d279',
  '#f34d4d',
  '#2e91b7',
  '#c95739',
  '#30c37f',
  '#e44503',
  '#b074ee',
  '#d743af',
  '#52dcb0',
  '#f73a8a',
  '#d86332',
  '#24d2b7',
  '#225de2',
  '#a80611',
  '#b99609',
  '#01a99b',
  '#f7bd0e',
  '#4302c8',
];

/**
 * echart边框类型
 */
export const echartsBorderTypeListConst = [
  {
    value: 'solid',
    label: '实线',
  },
  {
    value: 'dotted',
    label: '点状',
  },
  {
    value: 'dashed',
    label: '虚线',
  },
];

/**
 * echart边框末端的绘制类型
 */
export const echartsBorderCapListConst = [
  {
    value: 'butt',
    label: '方形',
  },
  {
    value: 'round',
    label: '圆形',
  },
  {
    value: 'square',
    label: '加厚方形',
  },
];

/*
 * echart选中模式
 */
export const echartsSelectedModeListConst = [
  {
    value: 'false',
    label: '不设置',
  },
  {
    value: 'single',
    label: '单选',
  },
  {
    value: 'multiple',
    label: '多选',
  },
];

/**
 * echart字体样式
 */
export const echartsFontStyleListConst = [
  {
    value: 'normal',
    label: '默认',
  },
  {
    value: 'italic',
    label: '斜体',
  },
  {
    value: 'oblique',
    label: '倾斜',
  },
];

/**
 * echart标签旋转
 */
export const echartLabelRotateListConst = [
  {
    value: 'true',
    label: '径向排布',
  },
  {
    value: 'false',
    label: '自定义',
  },
];

/**
 * echart overflow
 */
export const echartOverflowListConst = [
  {
    value: 'none',
    label: '无',
  },
  {
    value: 'truncate',
    label: '自定义溢出文本',
  },
  {
    value: 'break',
    label: '部分换行',
  },
  {
    value: 'breakAll',
    label: '所有换行',
  },
];

/**
 * echart Label Position
 */
export const echartLabelPositionListConst = [
  {
    value: 'outside',
    label: '外侧',
  },
  {
    value: 'inside',
    label: '内部',
  },
  {
    value: 'center',
    label: '中心',
  },
];

/**
 * echart emphasis focus
 */
export const echartEmphasisFocusListConst = [
  {
    value: 'none',
    label: '不淡出',
  },
  {
    value: 'self',
    label: '只聚焦',
  },
  {
    value: 'series',
    label: '聚焦高亮',
  },
];

export const echartEmphasisBlurScopeListConst = [
  {
    value: 'coordinateSystem',
    label: '淡出范围为坐标系',
  },
  {
    value: 'series',
    label: '淡出范围为系列',
  },
  {
    value: 'global',
    label: '淡出范围为全局',
  },
];

//====================业务相关的常量信息===================

export const httpRequestMethodConst = {
  get: 'get',
  post: 'post',
};

export const httpRequestMethodListConst = [
  {
    value: 'get',
    label: 'get',
  },
  {
    value: 'post',
    label: 'post',
  },
];


/**
 * 图片框来源
 */
export const pictureBoxSourceListConst = [
  {
    value: 'default',
    label: '默认',
  },
  {
    value: 'url',
    label: 'url地址',
  },
];

export const pictureBoxSourceConst = {
  default: 'default', //默认
  url: 'url', //url地址
};

/**
 * 媒体来源类型
 */
export const mediaSourceListConst = [
  {
    value: 'url',
    label: 'url地址',
  },
];

export const mediaSourceConst = {
  url: 'url', //网络
};

/**
 * 饼图数据来源
 */
export const echartPieDataSourceListConst = [
  {
    value: 'json',
    label: 'JSON数据',
  },
  {
    value: 'httpRequest',
    label: 'http请求',
  },
];

export const echartPieDataSourceConst = {
  json: 'json', //json
  httpRequest: 'httpRequest', //http请求
};
